package com.xiaogao.serviceEdu.service.impl;

import com.xiaogao.serviceEdu.entity.EduCourseDescription;
import com.xiaogao.serviceEdu.mapper.EduCourseDescriptionMapper;
import com.xiaogao.serviceEdu.service.EduCourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author 小高
 * @since 2021-06-08
 */
@Service
public class EduCourseDescriptionServiceImpl extends ServiceImpl<EduCourseDescriptionMapper, EduCourseDescription> implements EduCourseDescriptionService {

    @Override
    public boolean removeCourseById(String courseId) {
        Integer count = baseMapper.deleteById(courseId);
        return null != count && count > 0;
    }
}
